package com.lottery.ruok.lottrey.retrofitModule.request;

import com.lottery.ruok.lottrey.retrofitModule.BaseModel;
import com.lottery.ruok.lottrey.retrofitModule.response.GetLoginResponse;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Header;
import retrofit2.http.POST;

/**
 * Created by ASUS on 2017/7/27.
 */

public interface GetLoginRequest {
    @FormUrlEncoded
    @POST("login")
    Observable<BaseModel<GetLoginResponse>> getResult(@Field("username") String username,
                                                     @Field("password") String password,
                                                     @Field("captcha") String captcha,
                                                     @Header("User-Agent") String info,
                                                      @Field("location") String location,
                                                      @Field("last_login_coordinate") String last_login_coordinate);
}
